package com.ruoyi.contract.domain.contractVo;

import com.ruoyi.contract.domain.Contract;
import org.springframework.beans.BeanUtils;

import java.util.List;
import java.util.stream.Collectors;

public class ContractAllPartyVo {
    /** 合同 */
    private Contract contract;

    public ContractAllPartyVo(Contract contract) {
        this.contract = contract;
        BeanUtils.copyProperties(contract, this);  // 复制 contract 属性到当前对象
    }

    /** 签约方列表 */
    private List<String> contractPartyNameList;

    // Getter for contract
    public Contract getContract() {
        return contract;
    }

    // Setter for contract
    public void setContract(Contract contract) {
        this.contract = contract;
    }

    // Getter for contractPartyNameList
    public List<String> getContractPartyNameList() {
        return contractPartyNameList;
    }

    // Setter for contractPartyNameList
    public void setContractPartyNameList(List<String> contractPartyNameList) {
        this.contractPartyNameList = contractPartyNameList;
    }

}
